
import { useGlobalIconFont } from './components/iconfont/helper';

export default {
  // usingComponents: {
  //   iconfont: '@/components/iconfont/weapp/weapp',
  // },
  // usingComponents: Object.assign(useGlobalIconFont()),
  usingComponents: Object.assign({
    iconfont: `components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
  }),
  pages: ["pages/tabbar/home/index",
    "pages/tabbar/fund/index",
    "pages/tabbar/obs_pool/index",
    "pages/tabbar/mine/index",
    'pages/eligible_investors/index',],
  subPackages: [
    {
      root: "login",
      pages: ["login/index"],
    },
    {
      root: "homeDetail",
      pages: [
        "hotNews/index",
        "searchDetail/index",
        "hotNewsDetail/index",
      ],
    },
    {
      root: "mineDetail",
      pages: [
        "detail/index",
        "shareManifest/index",
        "serviceAgreement/index",
        "privacyPolicy/index",
        "webView/index",
        "inviteFriends/index",
        "inviteDetail/index",
        "alRealName/index"
      ],
    },
    {
      root: "obsPoolDetail",
      pages: [
        "obsPoolList/index",
        "reportDetail/index",
      ],
    },
    {
      root: "consultQrCode",
      pages: [
        "index",
      ],
    },

    {
      root: "components",
      name: 'jumpAppTips',
      pages: [
        "jump_app_tips/index",
      ],
    },
    {
      root: "eligible_investors",
      pages: [
        "type/index",
        // "NavBar/index",
        "risk_assessment/index",
        "risk_assessment/detail/index",
        "information_table/index",
        "evidence/index",
        "next_step/index",
      ],
    },
    {
      root: "preIpoFund",
      pages: [
        "fundDetail/index",
        "historicalNetValue/index",
        "manager/index",
        "search/home/index",
        "search/result/index",
      ],
    },
    {
      root: "wallet",
      pages: [
        "index",
        'realName/index',
        'personInfoUseRecord/index',
        'authMange/index',
      ],
    },
    {
      root: "xiaoyiAccExam",
      pages: [
        "index",
        'wrongQuestion/index',
        'answer/index',
        'analysis/index',
        'result/index',
      ],
    },
    {
      root: "realname",
      pages: [
        "index",
      ],
    },
  ],
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fdfdfe",
    navigationBarTextStyle: "black",
    backgroundColor: "#f4f5f7",
  },
  tabBar: {
    selectedColor: "#3C6BFF",
    color: "#263446",
    borderStyle: 'black',
    list: [
      {
        current: 0,
        pagePath: "pages/tabbar/home/index",
        text: "首页",
        iconPath: "assets/icons/home.png",
        selectedIconPath: "assets/icons/home_active.png",
      },

      {
        current: 1,
        pagePath: "pages/tabbar/fund/index",
        text: "私募基金",
        iconPath: "assets/icons/mine3.png",
        selectedIconPath: "assets/icons/mine_active3.png",
      },
      {
        current: 2,
        pagePath: "pages/tabbar/obs_pool/index",
        text: "观察池",
        iconPath: "assets/icons/observation_pool_icon.png",
        selectedIconPath: "assets/icons/observation_pool_icon_active.png",
      },

      {
        current: 3,
        pagePath: "pages/tabbar/mine/index",
        text: "我的",
        iconPath: "assets/icons/mine3.png",
        selectedIconPath: "assets/icons/mine_active3.png",
      },

    ],
  },
  lazyCodeLoading: "requiredComponents"
};
